<template>
  <ul class="todo-main">
    <Item
      v-for="todo in todos"
      :key="todo.id"
      :todo="todo"
      :updatetodo="updatetodo"
    ></Item>
  </ul>
</template>

<script>
import { defineComponent } from "vue";
import Item from "./Item.vue";
export default defineComponent({
  name: "List",
  props: ["todos", "updatetodo"],
  components: {
    Item,
  },
  setup() {
    return {};
  },
});
</script>

<style lang="scss" scoped>
.todo-main {
  margin-left: 0px;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 0px;
}
</style>
